package threading.tests;

import jccr.*;

import org.junit.*;

public class ThreadPoolTests {
	
	@Test
	public void createPool() throws Exception {
		
		String name = "test";
		int count = 10;
		
		ThreadPool p = new ThreadPool(name, count);
		Assert.assertEquals(name, p.getName());
		Assert.assertEquals(count, p.getWorkerCount());
		
		p.dispose();
	}
}
